package zjump.simplelibrary;

import android.app.Activity;
import android.os.Bundle;
import zjump.simplelibrary.connect.NetworkStatus;
import zjump.simplelibrary.utils.LogUtils;
import zjump.simplelibrary.utils.SharedPrefUtils;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

		LogUtils.D(NetworkStatus.getNetworkStatus(this));

		SharedPrefUtils.put(this, "username", "djgzhiyong");
		String tmp = SharedPrefUtils.get(this, "username");
		LogUtils.D("tmp:" + tmp);

		SharedPrefUtils.put(this, "password", 123456);
		int tmp1 = SharedPrefUtils.get(this, "password");
		LogUtils.D("tmp1:" + tmp1);
		
		SharedPrefUtils.put(this, "state", true);
		boolean tmp2 = SharedPrefUtils.get(this, "state");
		LogUtils.D("tmp2:" + tmp2);
	}

}
